﻿
namespace KlearTweet.Client.Initialization
{
    public partial class Application
    {
        public IExceptionHandler ExceptionHandler { get; set; }

        public Application()
        {
            InitializeComponent();

            UnhandledException += (s, e) =>
            {
                if (ExceptionHandler != null)
                    ExceptionHandler.Handle(e);
            };

            Startup += (s, e) => new StartupService(this, e.InitParams);
        }
    }
}
